// https://umijs.org/config/
import { defineConfig } from 'umi';

export default defineConfig({
  publicPath:'/',
  define:{
    'process.env.apiurl':"//localhost:6868/crmserve",
    'process.env.imgPrefix':'//lazygang.fun/',
    'process.env.blogApiUrl':'//106.55.12.105:5000'
    // 'process.env.apiurl':"//106.55.12.105:6868/crmserve"
    // 'process.env.apiurl':"//lazygang.fun/crmserve"
  },
  plugins: [
    // https://github.com/zthxxx/react-dev-inspector
    'react-dev-inspector/plugins/umi/react-inspector',
  ],
  // https://github.com/zthxxx/react-dev-inspector#inspector-loader-props
  inspectorConfig: {
    exclude: [],
    babelPlugins: [],
    babelOptions: {},
  },
  // proxy: {
  //   '/serve': {
  //     'target': '//lazygang.fun',
  //     'changeOrigin': true,
  //     // 'pathRewrite': { '' : '' },
  //   },
  // },
});
